package com.yanfan.energy.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 单价设置历史记录表(EnergyPriceHistory)实体类
 *
 * @author makejava
 * @since 2022-12-18 15:36:08
 */
public class EnergyPriceHistoryNew implements Serializable {

    private static final long serialVersionUID = 173282819936686744L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 单价设置id
     */
    private Long priceSettingId;
    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 设置对象
     */
    private Long unitTargetBefore;
    /**
     * 设置前单价
     */
    private Double unitPriceBefore;
    /**
     * 设置后单价
     */
    private Double unitPriceAfter;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */
    private Date createdDate;
    /**
     * 修改时间
     */
    private Date lastModifiedDate;
    /**
     * 能源单价
     */
    private Double price;
    /**
     * 能源类型
     */
    private Long type;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;

    private Integer scheme;


    public EnergyPriceHistoryNew() {
    }

    public EnergyPriceHistoryNew(Integer id, Long priceSettingId, Long userId, Long unitTargetBefore, Double unitPriceBefore, Double unitPriceAfter, String createdBy, Date createdDate, Date lastModifiedDate, Double price, Long type, Date startTime, Date endTime, Integer scheme) {
        this.id = id;
        this.priceSettingId = priceSettingId;
        this.userId = userId;
        this.unitTargetBefore = unitTargetBefore;
        this.unitPriceBefore = unitPriceBefore;
        this.unitPriceAfter = unitPriceAfter;
        this.createdBy = createdBy;
        this.createdDate = createdDate;
        this.lastModifiedDate = lastModifiedDate;
        this.price = price;
        this.type = type;
        this.startTime = startTime;
        this.endTime = endTime;
        this.scheme = scheme;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getPriceSettingId() {
        return priceSettingId;
    }

    public void setPriceSettingId(Long priceSettingId) {
        this.priceSettingId = priceSettingId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUnitTargetBefore() {
        return unitTargetBefore;
    }

    public void setUnitTargetBefore(Long unitTargetBefore) {
        this.unitTargetBefore = unitTargetBefore;
    }

    public Double getUnitPriceBefore() {
        return unitPriceBefore;
    }

    public void setUnitPriceBefore(Double unitPriceBefore) {
        this.unitPriceBefore = unitPriceBefore;
    }

    public Double getUnitPriceAfter() {
        return unitPriceAfter;
    }

    public void setUnitPriceAfter(Double unitPriceAfter) {
        this.unitPriceAfter = unitPriceAfter;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getScheme() {
        return scheme;
    }

    public void setScheme(Integer scheme) {
        this.scheme = scheme;
    }

    @Override
    public String toString() {
        return "EnergyPriceHistory{" + "id=" + id + ", priceSettingId=" + priceSettingId + ", userId=" + userId + ", unitTargetBefore=" + unitTargetBefore + ", unitPriceBefore=" + unitPriceBefore + ", unitPriceAfter=" + unitPriceAfter + ", createdBy='" + createdBy + '\'' + ", createdDate=" + createdDate + ", lastModifiedDate=" + lastModifiedDate + ", price=" + price + ", type=" + type + ", startTime=" + startTime + ", endTime=" + endTime + ", scheme=" + scheme + '}';
    }
}
